package deleteEmployeeTransaction;

import database.PayrollDatabase;
import main.Transaction;

public class DeleteEmployeeTransaction extends Transaction {
	private int empid;
	private PayrollDatabase database;

	public DeleteEmployeeTransaction(int id, PayrollDatabase database) {
		super(database);
		this.empid = id;
		this.database = database;
	}

	@Override
	public void execute() {
		database.deleteEmployee(empid);
	}
}
